package cate.common.table.activity.battleroyale.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.battleroyale.row.BattleRoyaleGiftRow;

import java.util.ArrayList;
import java.util.List;

public class BattleRoyaleGiftSheet extends ESheet<BattleRoyaleGiftRow> {
    @Override
    public String getSheetName() {
        return "弹窗礼包规则";
    }

    public List<BattleRoyaleGiftRow> giftRows(int tid){
        List<BattleRoyaleGiftRow> list = new ArrayList<>();
        for(BattleRoyaleGiftRow row : getList()){
            if(tid >= row.begin && tid <= row.end){
                list.add(row);
            }
        }
        return list;
    }
}
